package com.gopay.common.rcs.bean;

import com.gopay.common.domain.BaseEntity;

/**
 * 客户订单IP校验状态
 * @author liujy
 *
 */
public class OrderIPCheckStatus extends BaseEntity {
    private static final long serialVersionUID = 8934684979780286300L;
    private String custId;

    public OrderIPCheckStatus(String custId) {
        super();
        this.custId = custId;
    }

    private boolean globalOn;// 全局是否开启
    private boolean merchantOn;// 商户是否开启
    private IllegalReqDicision illegalReqDicision;// 非法请求处理方式

    public boolean isOn() {
        return globalOn || merchantOn;
    }

    public boolean isGlobalOn() {
        return globalOn;
    }

    public void setGlobalOn(boolean globalOn) {
        this.globalOn = globalOn;
    }

    public boolean isMerchantOn() {
        return merchantOn;
    }

    public void setMerchantOn(boolean merchantOn) {
        this.merchantOn = merchantOn;
    }

    public IllegalReqDicision getIllegalReqDicision() {
        return illegalReqDicision;
    }

    public void setIllegalReqDicision(IllegalReqDicision illegalReqDicision) {
        this.illegalReqDicision = illegalReqDicision;
    }

    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

}
